﻿@model WebDauGia.Domain.Models.DanhMucSanPham

@{
    ViewBag.Title = "Admin: Edit "+@Model.ten;
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
    ViewBag.ten = "Tên danh mục";
    ViewBag.mota = "Mô tả";
}

<h2>Edit @Model.ten</h2>
@using (Html.BeginForm("EditDanhMucSanPham","AdminHome")) { 
    @Html.ValidationSummary(true)
    <div>
       <div class="editor-label">ID danh mục</div>
        <div class="editor-field">@Html.EditorFor(m=>Model.id)</div>
        <div class="editor-label">Tên danh mục</div>
        <div class="editor-field">@Html.EditorFor(m => Model.ten)</div>
        <p style="color:red;">@Html.ValidationMessageFor(m => Model.ten)</p>
         <div class="editor-label">Mô tả</div>
        <div class="editor-field">@Html.EditorFor(m => Model.mota)</div>
        <div class="editor-label">Active</div>
        <div class="editor-field">@Html.EditorFor(m => Model.active)</div>
      @* @Html.EditorForModel()*@
       
    </div>
    <div><input type="submit" value="Save"/>
    @Html.ActionLink("Huỷ và trở về trang Danh mục sản phẩm","DanhMucSanPham")</div>
}